package com.wl.common.system.service.impl;

import com.wl.common.core.web.dto.RestResultDTO;
import com.wl.common.system.dao.SysUserMapper;
import com.wl.common.system.dao.SysUserRoleMapper;
import com.wl.common.system.service.SysCommonService;
import com.wl.common.system.service.SysRoleService;
import com.wl.common.system.support.dto.LoginDTO;
import com.wl.common.system.support.dto.RegisterDTO;
import com.wl.common.system.support.vo.LoginVO;
import com.wl.common.system.support.vo.SysUserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: wanglin
 * @date: 2023-09-18 周一
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Service
public class SysCommonServiceImpl implements SysCommonService {

    @Autowired
    private SysUserMapper userMapper;
    @Autowired
    private SysUserRoleMapper userRoleMapper;
    @Autowired
    private SysRoleService roleService;


    @Transactional(rollbackFor = Exception.class)
    @Override
    public void register(RegisterDTO dto) {

    }

    @Override
    public RestResultDTO<LoginVO> login(LoginDTO dto) {
        return null;
    }

    @Override
    public void logout(HttpServletRequest request) {

    }

    @Override
    public void resetPassword(String userId, String password) {

    }

    @Override
    public SysUserVO getInfo(HttpServletRequest request) {
        return null;
    }

    @Override
    public RestResultDTO<LoginVO> refreshToken(HttpServletRequest request) {
        return null;
    }
}
